package com.xinyu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.xinyu.domain.DailyAttachment;

/**
 * <p>
 * 
 * </p>
 *
 * @author: XinYu
 * @since 2025-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_daily")
@ApiModel(value="Daily对象", description="")
public class Daily implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名字")
    private Integer equipmentId;
    @ApiModelProperty(value = "模块名字")
    private Integer moduleId;

    @ApiModelProperty(value = "控件名字")
    private Integer componentId;

    @ApiModelProperty(value = "发生时间")
    private String happendTime;

    @ApiModelProperty(value = "记录时间")
    private String logTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "记录人")
    private Integer logUserId;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "0 非任务  1 任务")
    private Integer task;

    private Integer taskId;

    @ApiModelProperty(value = "附件URL")
    private String attachment;
    @ApiModelProperty(value = "附件名字")
    private String attachmentName;

    private Integer state;

    private String title;

    private Integer isDelete;

    private Integer siteId;

    @TableField(exist = false)
    private EquipmentInfo equipment;
    @TableField(exist = false)
    private Module module;
    @TableField(exist = false)
    private Component component;
    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Site site;

    @TableField(exist = false)
    private List<DailyAttachment> attachments;

}
